package at.fhooe.tuxgestures.cam.mapper;

public class MovementPoint implements IMovementPoint
{

	private int widthIndex = -1;
	private int heightIndex = -1;
	
	private float value = -1F;
	private int intVal = -1;
	
	private MovementPointType type;
	
	public MovementPoint()
	{
	}
	
	public MovementPoint(int widthIndex, int heightIndex, int intVal, float value,
			MovementPointType type)
	{
		this.widthIndex = widthIndex;
		this.heightIndex = heightIndex;
		this.intVal = intVal;
		this.value = value;
		this.type = type;
	}
	
	@Override
	public float getValue()
	{
		return value;
	}
	
	@Override
	public int getIntValue()
	{
		return intVal;
	}

	@Override
	public int getWidthIndex()
	{
		return widthIndex;
	}

	@Override
	public int getHeightIndex()
	{
		return heightIndex;
	}

	@Override
	public void setValues(int widthIndex, int heightIndex, int intVal,
			float value, MovementPointType type)
	{
		this.widthIndex = widthIndex;
		this.heightIndex = heightIndex;
		this.intVal = intVal;
		this.value = value;
		this.type = type;
	}
	
	@Override
	public MovementPointType getMovementPointType()
	{
		return type;
	}
}
